package com.xiaoshuidi.cloud.module.member.controller.admin.index.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class ResourceVo {

    private List<ResourceItemVo> items;

    private String context;


    @Data
    public static class ResourceItemVo{
        private Long aptId;
        private String aptName;
        private String address;
        private String hotline;
        private BigDecimal rent;
        private String picUrl;
        @Schema(description = "用户距离门店的距离")
        private Double distance;
        @Schema(description = "标签")
        private List<String> tags;
        private List<LayoutInfo> layoutInfo;
    }

    @Data
    public static class LayoutInfo{
        @Schema(description = "房型id")
        private Long layoutId;
        @Schema(description = "房型图片")
        private String picUrl;
        @Schema(description = "房型名")
        private String name;
        @Schema(description = "价格")
        private String price;
        @Schema(description = "空房数量")
        private Integer emptyRoomNum;
        @Schema(description = "总房源数量")
        private Long roomNum;
    }
}
